Add reportlab and svglib PDF-generation libraries#64
Merged
Conversation
Add two PDF-generation libraries to the executor bundle: - reportlab (>=5.0.0, BSD): the standard library for programmatic PDF generation. Pillow is already bundled, so this adds only 1 package. - svglib (>=2.0.2, LGPL-3.0): converts SVG into ReportLab drawings, giving a clean path from matplotlib SVG output to PDF. Adds 4 small pure-Python deps (cssselect2, tinycss2, webencodings + itself). Skipped xhtml2pdf (HTML->PDF): it pulls ~20 packages including a PDF-signing/crypto stack (pyHanko, oscrypto, asn1crypto) and pins reportlab<5, which is at odds with the "lightweight" goal. svglib's LGPL-3.0 license matches the existing fpdf2 dependency, so it introduces no new licensing posture. Bump executor 0.4.4 -> 0.4.5. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Keep code-interpreter in sync with the executor version bump: update code-interpreter/pyproject.toml, its uv.lock, and the Helm chart version from 0.4.4 to 0.4.5. Matches the release convention from #63. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Danelegend
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds two PDF-generation libraries to the
executordependency bundle:>=5.0.0>=2.0.2cssselect2,tinycss2,webencodings) — SVG → ReportLab drawings, a clean path from matplotlib SVG output to PDFNet: +5 pure-Python packages.
Version bump (kept in sync)
The
executorandcode-interpreterpackages are released together, so this bumps all of them0.4.4 → 0.4.5, matching the release convention from #63:executor/pyproject.toml+executor/uv.lockcode-interpreter/pyproject.toml+code-interpreter/uv.lockkubernetes/code-interpreter/Chart.yamlWhy these two
reportlabwas the explicit ask and is essentially free given Pillow is already present.svglibcomplements it (and the existing matplotlib stack) by rendering SVG straight into PDFs, with a negligible footprint.What was deliberately skipped
pyHanko,oscrypto,asn1crypto,requests/urllib3), and pinsreportlab<5. Fails the "lightweight" goal.Licensing note
svglibis LGPL-3.0, which matches the existingfpdf2direct dependency (also LGPL-3.0-only) — so it introduces no new licensing posture. The image only invokes the library (no modification/redistribution of source). No GPL/AGPL anywhere in the dependency tree.Verification
uv lock --checkpasses for both packages (Docker build usesuv sync --frozen).reportlabimports and generates a valid PDF;svglib.svg2rlgimports.🤖 Generated with Claude Code